<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Simple Module <i>ConnectionManager</i></h2>
<b>Package:</b> org.mixim.base.connectionManager<br/><b>File: <a href="base-connectionManager-ConnectionManager.ned.html">base/connectionManager/ConnectionManager.ned</a></b><br/><p><a href="../doxy/a00055.html" target="mainframe"><b>C++ definition</b></a></p>

<p>Module to control all connection related stuff</p>
<p>The central module that coordinates the connections between all
nodes, and handles dynamic gate creation.  <a href="org.mixim.base.connectionManager.ConnectionManager.html">ConnectionManager</a> therefore
periodically communicates with the mobility module and
ChannelAccess.</p>
<p>The four parameters pMax, sat, alpha, and carrierFrequency are used
to calculate the interference distance between nodes. The values used
here in <a href="org.mixim.base.connectionManager.ConnectionManager.html">ConnectionManager</a> are used to calculate the upper bound,
i.e. they can be redifined in the analogue models, but never such
that the maximal interference distance is exeeded.</p>
<p><b>Author:</b> Steffen Sroka, Daniel Willkomm, Karl Wessel</p>
<p><b>See also:</b> <a href="org.mixim.base.modules.BaseMobility.html">BaseMobility</a></p>
<img src="org.mixim.base.connectionManager.ConnectionManager-type.png" ismap="yes" usemap="#type-diagram"/><map name="type-diagram">
<area shape="rect" href="org.mixim.base.connectionManager.ConnectionManager.html" title="ConnectionManager" alt="ConnectionManager" coords="0,0,173,40">
</map>
<h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram. Click <a href="full-ned-usage-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.base.connectionManager.ConnectionManager-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="org.mixim.base.connectionManager.ConnectionManager.html" title="Simple Module ConnectionManager" alt="" coords="625,83,764,111">
<area shape="rect" id="node2" href="org.mixim.examples.analogueModels.AnalogueModels.html" title="Network AnalogueModels" alt="" coords="5,6,123,34">
<area shape="rect" id="node4" href="org.mixim.examples.BaseMoBANNetwork.BaseMoBANNetwork.html" title="Network BaseMoBANNetwork" alt="" coords="147,6,293,34">
<area shape="rect" id="node6" href="org.mixim.examples.baseNetwork.BaseNetwork.html" title="Network BaseNetwork" alt="" coords="317,6,419,34">
<area shape="rect" id="node8" href="org.mixim.examples.bmac.BMAC.html" title="Network BMAC" alt="" coords="443,6,515,34">
<area shape="rect" id="node10" href="org.mixim.examples.CSMAMac.CSMAMac.html" title="Network CSMAMac" alt="" coords="539,6,624,34">
<area shape="rect" id="node12" href="org.mixim.examples.ieee802154a.ieee802154a.html" title="Network ieee802154a" alt="" coords="648,6,741,34">
<area shape="rect" id="node14" href="org.mixim.examples.ieee802154Narrow.ieee802154Narrow.html" title="Network ieee802154Narrow" alt="" coords="765,6,896,34">
<area shape="rect" id="node16" href="org.mixim.examples.lmac.LMAC.html" title="Network LMAC" alt="" coords="920,6,992,34">
<area shape="rect" id="node18" href="org.mixim.examples.Mac80211.Mac80211.html" title="Network Mac80211" alt="" coords="1016,6,1099,34">
<area shape="rect" id="node20" href="org.mixim.examples.multiConnectionManager.MultiConnectionManager.html" title="Network MultiConnectionManager" alt="" coords="1123,6,1288,34">
<area shape="rect" id="node22" href="org.mixim.examples.WSNRouting.WSNRouting.html" title="Network WSNRouting" alt="" coords="1312,6,1411,34">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram. Click <a href="full-ned-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.base.connectionManager.ConnectionManager-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="org.mixim.base.connectionManager.ConnectionManager.html" title="Simple Module ConnectionManager" alt="" coords="5,6,144,34">
</map>
<h3 class="subtitle">Networks:</h3>
<table>
<tr>
   <td>
      <a href="org.mixim.examples.analogueModels.AnalogueModels.html">AnalogueModels</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to use <a href="org.mixim.examples.analogueModels.AnalogueModels.html">AnalogueModels</a>.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.BaseMoBANNetwork.BaseMoBANNetwork.html">BaseMoBANNetwork</a>
      <i> (network)</i>
   </td>
   <td>

<p>This network is exactly the same as baseNetwork existing among the examples of MiXiM, but the desired number of MoBAN coordinator modules have been added.
Some nodes of type <a href="org.mixim.examples.baseNetwork.BaseNode.html">BaseNode</a> use <a href="org.mixim.modules.mobility.MoBANLocal.html">MoBANLocal</a> module as their mobility module. Then those nodes will be considered as WBAN nodes. 
Those node have a parameter named "coordinatorIndex" that determines to which WBAN (coordinator) the node belongs.  </p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.baseNetwork.BaseNetwork.html">BaseNetwork</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows the basic structure of an network using MiXiM.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.bmac.BMAC.html">BMAC</a>
      <i> (network)</i>
   </td>
   <td>
<i>(no description)</i>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.CSMAMac.CSMAMac.html">CSMAMac</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to use MiXiMs CSMA protocol implementation.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.ieee802154a.ieee802154a.html">ieee802154a</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example illustrates the use of the IEEE 802.15.4A UWB-IR
simulation model implemented in MiXiM.
The omnetpp.ini files comprises two scenarios. Both scenarios
involve only two hosts.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.ieee802154Narrow.ieee802154Narrow.html">ieee802154Narrow</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to use MiXiMs implementation of the ieee802154
narrow band protocol. It also provides an example on using the global 
blackboard provided by <a href="org.mixim.base.modules.BaseWorldUtility.html">BaseWorldUtility</a>.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.lmac.LMAC.html">LMAC</a>
      <i> (network)</i>
   </td>
   <td>
<i>(no description)</i>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.Mac80211.Mac80211.html">Mac80211</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to use MiXiMs 802.11 protocol implementation. </p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.multiConnectionManager.MultiConnectionManager.html">MultiConnectionManager</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to use multiple ConnectionManagers in your simulation. </p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.examples.WSNRouting.WSNRouting.html">WSNRouting</a>
      <i> (network)</i>
   </td>
   <td>

<p>This example shows how to simulate wireless sensor networks.
Three different routing protocols are considered, for different traffic 
types:
convergecast, with Wiseroute;
network-level broadcast, with flooding;
and probabilistic broadcast.</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for core framework</p>
   </td>
</tr>
<tr class="local">
   <td width="150">sendDirect</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>send directly to the node or create separate gates for every connection</p>
   </td>
</tr>
<tr class="local">
   <td width="150">pMax</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>maximum sending power used for this network [mW]</p>
   </td>
</tr>
<tr class="local">
   <td width="150">sat</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>minimum signal attenuation threshold [dBm]</p>
   </td>
</tr>
<tr class="local">
   <td width="150">alpha</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>minimum path loss coefficient</p>
   </td>
</tr>
<tr class="local">
   <td width="150">carrierFrequency</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>minimum carrier frequency of the channel [Hz]</p>
   </td>
</tr>
<tr class="local">
   <td width="150">drawMaxIntfDist</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>should the maximum interference distance be displayed for each node?</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Properties:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Value</th>
      <th>Description</th>
   </tr>
<tr>
   <td width="150">display</td>
   <td width="100"><i>i=abstract/multicast</i></td>
   <td></td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">// Module to control all connection related stuff
//
// The central module that coordinates the connections between all
// nodes, and handles dynamic gate creation.  ConnectionManager therefore
// periodically communicates with the mobility module and
// ChannelAccess.
//
// The four parameters pMax, sat, alpha, and carrierFrequency are used
// to calculate the interference distance between nodes. The values used
// here in ConnectionManager are used to calculate the upper bound,
// i.e. they can be redifined in the analogue models, but never such
// that the maximal interference distance is exeeded.
//       
// </span><span style="color: #000080; ">@author</span><span style="color: #808080; font-style: italic; "> Steffen Sroka, Daniel Willkomm, Karl Wessel
// </span><span style="color: #000080; ">@see</span><span style="color: #808080; font-style: italic; "> BaseMobility
//
</span><span style="color: #800000; font-weight: bold; ">simple</span><span style="color: #000000; "> </span><span style="color: #000000; ">ConnectionManager</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #808080; font-style: italic; ">// debug switch for core framework
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">bool</span><span style="color: #000000; "> </span><span style="color: #000000; ">coreDebug</span><span style="color: #000000; ">;
        </span><span style="color: #808080; font-style: italic; ">// send directly to the node or create separate gates for every connection
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">bool</span><span style="color: #000000; "> </span><span style="color: #000000; ">sendDirect</span><span style="color: #000000; ">;
        </span><span style="color: #808080; font-style: italic; ">// maximum sending power used for this network [mW]
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">pMax</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">mW</span><span style="color: #000000; ">);
        </span><span style="color: #808080; font-style: italic; ">// minimum signal attenuation threshold [dBm]
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">sat</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">dBm</span><span style="color: #000000; ">);
        </span><span style="color: #808080; font-style: italic; ">// minimum path loss coefficient
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">alpha</span><span style="color: #000000; ">;
        </span><span style="color: #808080; font-style: italic; ">// minimum carrier frequency of the channel [Hz]
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">carrierFrequency</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">Hz</span><span style="color: #000000; ">);
        </span><span style="color: #808080; font-style: italic; ">// should the maximum interference distance be displayed for each node?
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">bool</span><span style="color: #000000; "> </span><span style="color: #000000; ">drawMaxIntfDist</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">false</span><span style="color: #000000; ">);

        </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;i=abstract/multicast&quot;</span><span style="color: #000000; ">);
}

</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
